{template mobile_header}
<div class="container">
<div class="main">
    {loop $order_goods $goods}
        <div class="panel panel-primary">
            <div class="panel-body">
                <p>
                    商品：{$goods['goods_name']}
                </p>
                <p>
                    数量：{$goods['numbers']}
                </p>
                <p>
                    运费：￥{$goods['freight_total']}
                </p>
                {if $goods['had_freight'] > 0}
                <p>
                    已支付运费：{$goods['had_freight']}
                </p>
                {/if}
                {if $goods['gen_pay'] > 0}
                <p>
                    代收款：￥{$goods['gen_pay']}
                </p>
                <p>
                    已支付代付款：￥{$goods['had_gen_pay']}
                </p>
                {/if}
                {if $goods['from_member']}
                <p>
                    发货人：
                </p>
                {/if}
                <div align="center">
                    {if $goods['from_member_phone']}
                    <a href="tel:{$goods['from_member_phone']}">
                        <button class="btn btn-success">联系发货人</button>
                    </a>
                    {/if}
                </div>
            </div>
        </div>
    {/loop}

    <div>
        <p>
            总运费：￥{$total_freight}
        </p>
        {if $total_gen > 0}
        <p>
            总代付：￥{$total_gen}
        </p>
        {/if}
        <p>
            总应付：￥{$total_price}
        </p>
        <p>
            已支付：￥{$total_had_pay}
        </p>
    </div>
</div>
</div>
{template 'footer'}